/**
* 判断是否有权限
* @param perms
*/
export default function hasPermission(perms) {
    let hasPermission = false
    let permissions = JSON.parse(sessionStorage.getItem("authList"));
    for (let i = 0, len = permissions.length; i < len; i++) {
        if (permissions[i] === perms) {
            hasPermission = true;
            break
        }
    }
    return hasPermission
}

//权限判断方法
// v-if='hasPerm("sys:addDepartment")'